﻿@model List<Tele.DataModels.TVShow>

<div class="jumbotron">TVShows List<br />
    <a class="btn btn-default btn-sm pull-right" href="/Home/AddTVShow">Add TVShow</a>
    </div>

<table class="table-bordered table-condensed">
    <tr>
        <th>Show Logo</th>
        <th>Show Title</th>
        <th>Years Active</th>

    </tr>
    @foreach (var t in Model)
    {
        <tr onclick="location.href='/Home/DetailsTVShow/@t.Id'">
            <td><img src="@t.Image" style="width:200px; height:200px"/></td>
            <td>@t.Title</td>
            <td>@t.YearsActive</td>


        </tr>
    }
</table>